package com.example.springboot.dao;

import com.example.springboot.pojo.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.relational.core.sql.In;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StaffMapper {
    void insertStaff(Staff staff);
    List<Staff> selectAllStaff();
    List<Staff> selectStaffByDept(Integer dept);
    List<Staff> selectStaffByName(String name);
    List<Staff> selectStaff(Integer id, String name, String gender, Integer dept);
    void updateStaff(Staff staff);
    Staff selectStaffById(Integer id);
    void deleteStaff(Integer id);
}
